package com.topgay.controller.board;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.topgay.service.board.CSCenterService;

@Controller
@RequestMapping("/cscenter/")
public class CSCenterController {

	@Autowired
	private CSCenterService cscenterService;
	
	//공지사항
	@RequestMapping("/notice.do")
	public String noticePage(){
		return "cscenter/notice";
	}
	
	//FAQ
	@RequestMapping("/faq.do")
	public String faqPage(){
		return "cscenter/faq";
	}
	
	//1:1문의
	@RequestMapping("/qna.do")
	public String qnaPage(){
		return "cscenter/qna";
	}
	
//	/신고하기
	@RequestMapping("/declare.do")
	public String declarePage(){
		return "cscenter/declare";
	}
	
	public String list(@RequestParam(defaultValue="1")String page, String divide, ModelMap mode) {
		String url = null;
		int pageNo = 1;
		try {
			pageNo = Integer.parseInt(page);
		}catch(Exception e){;}
//		Map map = cscenterService
		return url;
	}
	
}
